﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hook.Graphics;
using Microsoft.Xna.Framework;

namespace Hook.Environmental.Props
{
    class PlayerChunk : Prop
    {
        public PlayerChunk(Vector3 Position, int Row, int Column)
            : base()
        {
            Sprite = new Sprite(Game1.ParticlePlayerSheet, Row);
            Sprite.CurrentFrame = Column;
            Sprite.FrameRate = 0;
            this.Position = Position + new Vector3(-20 + Column * 20, -30 + Row * 20, 0);

            List<Vector3> VO = new List<Vector3>();

            VO.Add(new Vector3(10, 10, 0));
            VO.Add(new Vector3(-10, 10, 0));
            VO.Add(new Vector3(-10, -10, 0));
            VO.Add(new Vector3(10, -10, 0));

            Frame.SetPoints(VO);

            //Mass = float.PositiveInfinity;
            //Inertia = float.PositiveInfinity;
            GravityOn = true;

            CollisionLayer.Add(0);
        }
    }
}
